package com.wind.beautymaintenanceorders.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.wind.beautymaintenanceorders.mapper.BeautymaintenanceordersMapper;
import com.wind.beautymaintenanceorders.domain.Beautymaintenanceorders;
import com.wind.beautymaintenanceorders.service.IBeautymaintenanceordersService;

/**
 * 美容保养订单Service业务层处理
 * 
 * @author wind
 * @date 2024-11-13
 */
@Service
public class BeautymaintenanceordersServiceImpl implements IBeautymaintenanceordersService 
{
    @Autowired
    private BeautymaintenanceordersMapper beautymaintenanceordersMapper;

    /**
     * 查询美容保养订单
     * 
     * @param OrderID 美容保养订单主键
     * @return 美容保养订单
     */
    @Override
    public Beautymaintenanceorders selectBeautymaintenanceordersByOrderID(Long OrderID)
    {
        return beautymaintenanceordersMapper.selectBeautymaintenanceordersByOrderID(OrderID);
    }

    /**
     * 查询美容保养订单列表
     * 
     * @param beautymaintenanceorders 美容保养订单
     * @return 美容保养订单
     */
    @Override
    public List<Beautymaintenanceorders> selectBeautymaintenanceordersList(Beautymaintenanceorders beautymaintenanceorders)
    {
        return beautymaintenanceordersMapper.selectBeautymaintenanceordersList(beautymaintenanceorders);
    }

    /**
     * 新增美容保养订单
     * 
     * @param beautymaintenanceorders 美容保养订单
     * @return 结果
     */
    @Override
    public int insertBeautymaintenanceorders(Beautymaintenanceorders beautymaintenanceorders)
    {
        return beautymaintenanceordersMapper.insertBeautymaintenanceorders(beautymaintenanceorders);
    }

    /**
     * 修改美容保养订单
     * 
     * @param beautymaintenanceorders 美容保养订单
     * @return 结果
     */
    @Override
    public int updateBeautymaintenanceorders(Beautymaintenanceorders beautymaintenanceorders)
    {
        return beautymaintenanceordersMapper.updateBeautymaintenanceorders(beautymaintenanceorders);
    }

    /**
     * 批量删除美容保养订单
     * 
     * @param OrderIDs 需要删除的美容保养订单主键
     * @return 结果
     */
    @Override
    public int deleteBeautymaintenanceordersByOrderIDs(Long[] OrderIDs)
    {
        return beautymaintenanceordersMapper.deleteBeautymaintenanceordersByOrderIDs(OrderIDs);
    }

    /**
     * 删除美容保养订单信息
     * 
     * @param OrderID 美容保养订单主键
     * @return 结果
     */
    @Override
    public int deleteBeautymaintenanceordersByOrderID(Long OrderID)
    {
        return beautymaintenanceordersMapper.deleteBeautymaintenanceordersByOrderID(OrderID);
    }
}
